package error

import (
	"myadmin/sys/syscontrollers/syscommon"
)

type ErrorController struct {
	syscommon.BaseController
}

func (c *ErrorController) Error404() {
	c.JsonRep(404,map[string]interface{}{
		"status":"404",
		"msg":"链接不存在！",
	})
}

func (c *ErrorController) Error501() {
	c.JsonRep(501,map[string]interface{}{
		"status":"501",
		"msg":"发生错误！",
	})
}
